<?php

	// +----------------------------------------------------------------------
	// | 中国省市区三级联动插件的后台控制器
	// +----------------------------------------------------------------------
	// | Copyright (c) 2015-2024 http://www.yicmf.com, All rights reserved.
	// +----------------------------------------------------------------------
	// | Author: 微尘 <yicmf@qq.com>
	// +----------------------------------------------------------------------

	namespace addon\china_city\controller;

	use yicmf\addon\controller\AdminController;
	use yicmf\builder\Edit;

	class Admin extends AdminController
	{
		// 默认配置
		public function config()
		{

			$config = $this->getConfig();
			$config['addon_name'] = $this->getName();
			$builder = new Edit();
			$builder->title('三级联动插件')
				->keyHidden('addon_name')
				->keyCity('district', '默认城市选择', '设置默认城市')//['province', 'city', 'district']
//             ->explain('配置')
				->data($config)
				->buttonSubmit('', '保存');
			return $builder->fetch();
		}
	}
